<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>


<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/black/easyui.css"/>
	

<link rel="stylesheet" type="text/css" href="css/llj/Connctor_css.css">
<script type="text/javascript">
     $(function(){
    	/* 添加  */
    	 $(".C_button_save").click(function(){
    		 var name=$(".C_deliver_name_input").val();  
    		 alert("name.length:"+name.length+",name:"+name);
    		 $.ajax({
      		   type:"get",
      		   url : "add_ConnectorData",
      		   data:{"name":name},   
      	       success:function(msg){    
      	    	   var data='"sucess"';
      	    	   if(msg==data){     
      	    		   alert("添加成功");  
      	    	   }else{
      	    		   alert("添加失敗");
      	    	   }  
      	    	 window.location.href="return_ConnectorPage";     
      	       }    
      	   });
    	 });   
     });
     /* 删除   */
     function Conne_delete(e){
    	 var getID=$(e).parent(".Conne_foreachTD_six").siblings(".Conne_foreachTD_one").text();     
    	 $.ajax({ 
             type:"post",          
             url:"delete_ConnectorData",        
             data:{getID:getID},           
             success:function(data){
            	 var dataa='"sucess"';
            	 if(data==dataa){  
            		 //跳轉
            		 alert("刪除成功");   
            	 }else{
            		 alert("刪除失敗"); 
            		 window.location.href="to_ConnectorSetUpT";         
            	 }   
         }    
       });     
     };
     /*  预览     */
     function Conne_view(e){
    	 //获取接件状况'id'与'接件名称'  
    	 alert("弹出");
    	 var getID=$(e).parent(".Conne_foreachTD_five").siblings(".Conne_foreachTD_one").text(); 
    	 var getName=$(e).parent(".Conne_foreachTD_five").siblings(".Conne_foreachTD_two").text(); 
    	  alert(getID+"/"+getName);
    	 $.ajax({
    		 type:"get",    
    		 url:"Jump_ConnectorSetUpThree",
    		 data:{connectorId:getID,name:getName}, 
    		 success: function(msg){ //成功 
    		     if(msg==null){   
    		    	 alert("查询失败");  
    		     }else{
    		    	 alert("查询成功");   
    		    	 window.location.href="to_ConnectorSetUpThree";          
    		     }
    			 }    
    	 }); 
     };
</script>

<title>维修工单接件状况</title>  
</head>
<body>  
      <div style="border:solid 1px none">111 ${ConnectorName}${listData}</div>               
	  <div>
	     <span class="C_h4"><span class="C_definition">维修工单-接件状况自定义</span><a class="C_return_set" href="#">&nbsp;返回系统设置>></a></span>
	         <br/><p class="C_plain">说明：</p>                 
	         <ol class="C_ol">  
	            <li>用于定义某种维修产品在接件时，需记录的情况。</li>  
	            <li>比如：手机，需记录键盘磨损情况、是否有贴膜、是否有机内闪存卡等。</li>
	            <li>辅助在维修过程中，不会产生新的损坏，不会丢失原机配件等。避免与客户的纠纷。</li>
	            <li>使用本工具定义各种维修产品的固定表格，准确描述接件时详细情况。</li>
	         </ol>
	     <div>
	         <span id="C_xj_font">新建</span><span id="C_mc_font">&nbsp;名称</span><input type="text" size="20" name="C_deliver_name" class="C_deliver_name_input">
	         <input type="button" value="保存" class="C_button_save"><span class="C_prompt">(提示：一般按照维修产品类型建立，比如“笔记本”，“手机”等)</span>
	     </div> 
	     <div class="C_divContainTable">  
	         <table class="C_table" >
	            <thead>
	              <tr>
	                <th class="C_table_th C_table_th1">名称</th>
	                <th class="C_table_th C_table_th1">创建人</th>   
	                <th class="C_table_th C_table_th1">第一步</th>
	                <th class="C_table_th C_table_th1">第二部</th>
	                <th class="C_table_th C_table_th1">其它操作</th> 
	              </tr>
	            </thead>
	            <tbody>
		                 <c:if test="${!empty list_Connector }">
		                   <c:forEach items="${list_Connector}" var="x">
		                   <tr>  
		                       <td class="Conne_foreachTD Conne_foreachTD_one" style="display:none">${x.connectorId }</td> 
			                   <td class="Conne_foreachTD Conne_foreachTD_two">${x.connectorName }</td>   
			                   <td class="Conne_foreachTD Conne_foreachTD_three">1</td>   
			                   <td class="Conne_foreachTD Conne_foreachTD_four"><a href="#" class="Conne_TD_setUp" onClick="Conne_set(this)">设置</a></td>      
			                   <td class="Conne_foreachTD Conne_foreachTD_five"><a href="#" class="Conne_TD_setUp" onClick="Conne_view(this)">预览</a></td> 
			                   <td class="Conne_foreachTD Conne_foreachTD_six"><a href="#" class="Conne_TD_setUp" onClick="Conne_delete(this)">删除</a> 
			                   							   <a href="#" class="Conne_TD_setUp"  onClick="Conne_open(this)">开启</a>     
			                   </td>        
			               </tr>  
		                   </c:forEach>  
		                 </c:if>
	              
	            </tbody>
	         </table>
	     </div> 
	     <div class="C_wrap_hotLine">
	       <p class="C_hotLine">热线:<span id="C_number">4000-80-4000 400-960-9606</span>网站:<a id="C_linkXtools" href="http://www.xtools.cn/">www.xtools.cn</a></p>
	       <p class="C_hotLine">Copyright © 2004-2018  北京沃力森信息技术有限公司   Beijing Volitation Information Technology Co.,ltd</p>
	     </div>                
	  </div>
	  
	  
</body>
</html>